package com.atguigu.spring.service.impl;

import com.atguigu.spring.dao.UserDao;
import com.atguigu.spring.service.UserService;

/**
 * @author yanglin
 * @create 2023-12-11 11:31 星期一
 * description:
 */
public class UserServiceImpl implements UserService {
    
    
    //创建userDao类型属性，生成set方法
    private UserDao userDao;

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    public void add() {
        System.out.println("add...........");
        userDao.update();
    }
    
}
